package com.coolingme.springframework.aop.aspect;

import lombok.Getter;
import lombok.Setter;

import java.lang.reflect.Method;

/**
 * 回调通知接口
 *
 * @author wangyue
 * @date 2024/09/09 23:07
 */
@Getter
public class MeAdviceV1 {

    public MeAdviceV1(Object aspect, Method adviceMethod) {
        this.aspect = aspect;
        this.adviceMethod = adviceMethod;
    }

    public MeAdviceV1(Object aspect, Method adviceMethod, String throwName) {
        this.aspect = aspect;
        this.adviceMethod = adviceMethod;
        this.throwName = throwName;
    }

    /**
     * 切面类的实例对象
     */
    private Object aspect;

    /**
     * 切面方法对象
     */
    private Method adviceMethod;

    /**
     * 异常通知的异常名
     */
    @Setter
    private String throwName;


}
